' T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 ' Q%          N a m e :   s C O B O T _ S E N T E L _ V 0 9 . t x t                     D a t e :   0 2   M a y   2 0 2 2   Q%
 
 ' Q%      A u t h o r :   L e o n a r d o                                                                                   Q%
 
 ' Q%        S c o p e :   T e s t   a l l   t h e   f u n c t i o n a l i t y   o f   s C O B O T   S E N T E L             Q%
 
 ' `%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%c%
 
 ' Q%H a r d w a r e :   S E N T E L   M 1 = 1 0 1 : 1   b a s e m e n t ,   M 2 = 5 0 : 1                                   Q%
 
 ' _% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %b%
 
 ' Q%  N o t e :   F i r s t   r u n                                                                   3 1 / 0 3 / 2 0 2 2   Q%
 
 ' Q%              W o o d   p l a t e   a n d   s i x   m o t o r   s t r u c t u r e                   2 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              C A N   r e f i n e d                                                                 8 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              C O B O T   u p d a t e d                                                           1 2 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              W o o d   p l a t e   a n d   s i x   m o t o r   s t r u c t u r e                 1 4 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              A d e g u a t e   s e q u e n c e                                                   1 6 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              H A L   &   M a s t e r ,   m u l t i c o l o r   L E D                             1 7 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              F e e t e c h   F T 2 3 3 1 M ,   C l o c h e   a n d   E n c o d e r   A B         1 7 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              A d d e d   j o i n t   3   a n d   4                                               1 9 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              I n t e g r a t i o n   o f   C O B O T 3 6 0                                       2 8 / 0 4 / 2 0 2 2   Q%
 
 ' Q%              N e w   f u n c t i o n   R S 4 8 5   f o r   c o n n e c t i o n                   0 2 / 0 5 / 2 0 2 2   Q%
 
 ' Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 
 
 ' S l o t   6 0 2   =   1 0 0 0 
 
 O p t i o n   S p e e d   9 
 
 '   3 2   T o   D X P 1   2 5 4   2 1 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   P   ( P r o p o r t i o n a l 
 
 '   1 6   T o   D X P 1   2 5 4   2 2 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   D   ( D e r i v a t i v e ) 
 
 '     0   T o   D X P 1   2 5 4   2 3 - 1 	 	 '   I m m e d i a t e   v a l u e   t o   I   ( I n t e g r a l ) 
 
 ' B e e p   " 2 5 0 0   1 0 0 ,   1 5 0 0   1 0 0 " 
 
 
 
 V a r i a b l e   N u m e r i c   D e b u g   =   0   '   1   =   D E B U G       0   =   N O R M A L 
 
 
 
 R e s t o r e V a r s 
 
 
 
 O p t i o n   S p e e d   9 
 
 O p t i o n   G l o b a l K e y s   E n a b l e d 
 
 ' L o a d   i m a g e s \ S E N T E L _ t w o _ j o i n t . j p g 
 
 ' B e e p   " 2 5 0 0   2 0 0 ,   1 5 0 0   2 0 0 " 
 
 T T S   S e l e c t V o i c e   L a n g u a g e 
 
 T T S   S e t V o l u m e   1 0 0 
 
 T T S   S e t S p e e d   - 1 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S L O T   T E X T   f o r   C O M M A N D S   a n d   R E S P O N S E S               Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 V a r i a b l e   N u m e r i c   S l o t C o b o t C o m m a n d s     =   1 
 
 V a r i a b l e   N u m e r i c   S l o t C o b o t R e s p o n s e s   =   2 
 
 V a r i a b l e   N u m e r i c   S l o t Q R c o d e                   =   3 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %  %%%%  %%%%%
 
 '   Q%  V A R I A B L E   I N I T I A L I Z A T I O N S   &   A S S I G N E M E N T S         Q%  %      %  %%%%  %%%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%    %    %  %    %%
 
 V a r i a b l e   N u m e r i c   N u m C y c l e 
 
 V a r i a b l e   N u m e r i c   S t a r t T i m e 
 
 V a r i a b l e   S t r i n g     R e s u l t 
 
 V a r i a b l e   N u m e r i c   S l o t _ E m e r g e n c y 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ C l o c h e X 	 	 	 =     1 
 
 V a r i a b l e   N u m e r i c   S l o t _ C l o c h e Y 	 	 	 =     2 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ S w i t c h A B 	 	 	 =     3 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n c o d e r D a t a 	 	 =     4 
 
 ' V a r i a b l e   N u m e r i c   S l o t _ B u z z e d 	 	 	 =     5 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ F P S                             =   1 3 
 
 V a r i a b l e   N u m e r i c   S l o t _ E n a b l e R S 4 8 5             =   1 4 
 
 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d R 	 	 	         =     7 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d G 	 	                 =     8 
 
 V a r i a b l e   N u m e r i c   S l o t _ L e d B 	 	                 =     9 
 
 V a r i a b l e   N u m e r i c   S l o t _ P u m p                 	         =     6 
 
 V a r i a b l e   N u m e r i c   S l o t _ S i g n a l S c o p e               =   1 3 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%%%
 
 '   Q%  B U T T O N S                                                                         Q%  %%%%  %    %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%      %
 
 B u t t o n   1   T e x t   F r a m e P e r S e c 
 
 B u t t o n   F r a m e P e r S e c   T e x t   " F r a m e   P e r   S e c . " 
 
 
 
 B u t t o n   3   T e x t   C l o c h e M o d e J o i n t 
 
 B u t t o n   C l o c h e M o d e J o i n t   T e x t   " C l o c h e   M o d e   J o i n t   M 1   &   M 2 " 
 
 B u t t o n   C l o c h e M o d e J o i n t   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   4   T e x t   C l o c h e M o d e J o i n t T F 2 3 3 1 M 
 
 B u t t o n   C l o c h e M o d e J o i n t T F 2 3 3 1 M   T e x t   " C l o c h e   M o d e   T F 2 3 3 1 M " 
 
 B u t t o n   C l o c h e M o d e J o i n t T F 2 3 3 1 M   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   6   T e x t   E d i t S e q u e n c e 
 
 B u t t o n   E d i t S e q u e n c e   T e x t   " E d i t   s e q u e n c e " 
 
 B u t t o n   E d i t S e q u e n c e   C o l o r   P a l e G r e e n 
 
 
 
 B u t t o n   7   T e x t   R u n S e q u e n c e 
 
 B u t t o n   R u n S e q u e n c e   T e x t   " R U N   S E Q U E N C E " 
 
 B u t t o n   R u n S e q u e n c e   C o l o r   A q u a 
 
 
 
 B u t t o n   8   T e x t   S e l e c t S e q u e n c e 
 
 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e l e c t   S e q u e n c e " 
 
 B u t t o n   S e l e c t S e q u e n c e   C o l o r   P o w d e r B l u e 
 
 
 
 B u t t o n   9   T e x t   S t a r t P u m p 
 
 B u t t o n   S t a r t P u m p   T e x t   " S t a r t   P u m p " 
 
 B u t t o n   S t a r t P u m p   C o l o r   L i m e 
 
 
 
 B u t t o n   1 0   T e x t   S t o p P u m p 
 
 B u t t o n   S t o p P u m p   T e x t   " S t o p   P u m p " 
 
 B u t t o n   S t o p P u m p   C o l o r   C r i m s o n 
 
 
 
 B u t t o n   1 1   T e x t   W a y P o i n t T e s t 
 
 
 
 B u t t o n   1 2   T e x t   S a y Q R C o d e 
 
 B u t t o n   S a y Q R C o d e   C o l o r   Y e l l o w 
 
 
 
 B u t t o n   1 4   T e x t   " M o t o r T e m p " 
 
 B u t t o n   M o t o r T e m p   C o l o r   S a l m o n 
 
 
 
 B u t t o n   1 5   T e x t   C l o s e A l l 
 
 B u t t o n   C l o s e A l l   T e x t   " C L O S E   A L L " 
 
 B u t t o n   C l o s e A l l   C o l o r   R e d 
 
 
 
 B u t t o n   1 6   T e x t   E m e r g e n c y 
 
 B u t t o n   E m e r g e n c y   T e x t   " E M E R G E N C Y " 
 
 B u t t o n   E m e r g e n c y   C o l o r   R e d 
 
 B u t t o n   E m e r g e n c y   S l o t     S l o t _ E m e r g e n c y 
 
 
 
 B u t t o n   1 7   T e x t   R e d O n 
 
 B u t t o n   R e d O n   C o l o r   R e d 
 
 B u t t o n   1 8   T e x t   G r e e n O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   1 9   T e x t   Y e l l o w O n 
 
 B u t t o n   Y e l l o w O n   C o l o r   Y e l l o w 
 
 B u t t o n   2 0   T e x t   B l u e O n 
 
 B u t t o n   B l u e O n   C o l o r   M e d i u m B l u e 
 
 B u t t o n   2 1   T e x t   W h i t e O n 
 
 B u t t o n   G r e e n O n   C o l o r   G r e e n 
 
 B u t t o n   2 2   T e x t   R g b O f f 
 
 B u t t o n   R g b O f f   C o l o r   B l a c k 
 
 
 
 B u t t o n   2 4   T e x t   K n o b M o d e M 2 _ x _ 1 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 1   T e x t   " K n o b   M o d e   M 1   x   1 " 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 1   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   2 5   T e x t   K n o b M o d e M 2 _ x _ 0 1 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 1   T e x t   " K n o b   M o d e   M 1   x   0 . 1 " 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 1   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   2 6   T e x t   K n o b M o d e M 2 _ x _ 0 0 1 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 1   T e x t   " K n o b   M o d e   M 1   x   0 . 0 1 " 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 1   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   2 7   T e x t   K n o b M o d e M 2 _ x _ 0 0 0 1 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 0 1   T e x t   " K n o b   M o d e   M 1   x   0 . 0 0 1 " 
 
 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 0 1   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   2 9   T e x t   K n o b M o d e F T 2 3 3 1 M X 1 
 
 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 1   T e x t   " K n o b   M o d e   F e e T e c h   x 1 " 
 
 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 1   C o l o r   A q u a m a r i n e 
 
 
 
 B u t t o n   3 0   T e x t   K n o b M o d e F T 2 3 3 1 M X 5 
 
 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 5   T e x t   " K n o b   M o d e   F e e T e c h   x 5 " 
 
 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 5   C o l o r   A q u a m a r i n e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O A D   A P P S                                                                     Q%  %      %    %  %%%%  %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %    %  %%%%
 
 L o a d   T h e r e m i n o _ C A N . e x e 
 
 L o a d   T h e r e m i n o _ H A L . e x e 
 
 L o a d   T h e r e m i n o _ S l o t V i e w e r . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 1 . e x e 
 
 L o a d   T h e r e m i n o _ S i g n a l S c o p e _ M 2 . e x e 
 
 L o a d   T h e r e m i n o _ C o b o t . e x e 
 
 ' L o a d   T h e r e m i n o _ T e r m i n a l _ T r a n s m i t . e x e 
 
 ' L o a d   T h e r e m i n o _ T e r m i n a l _ R e c e i v e . e x e 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%%  %%%%%  %%%%%  %%%%%
 
 '   Q%    S T A R T   F R O M   H E R E                                                       Q%    %%%%      %      %%%%%  %%%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%      %      %      %  %    %%      %
 
 ' S l o t ( S l o t _ E n a b l e R S 4 8 5 )   =   1 0 0 0 
 
 
 
 C o n t r o l s   O p e n T e x t B o x 
 
 S h o w S e q u e n c e N a m e 
 
 S t o p P u m p 
 
 D i s a b l e A l l B u t t o n s 
 
 C o b o t S t o p E x e c u t i o n 
 
 C o b o t D i s a b l e R e p e a t 
 
 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   2 0 0 " 
 
 S e n d C o m m a n d T o C o b o t 
 
 C o b o t C o m m a n d   =   " S e t S p e e d   2 0 0 0 " 
 
 S e n d C o m m a n d T o C o b o t 
 
 C o n t r o l s   C l e a r T e x t B o x 
 
 Y e l l o w O n 
 
 P r i n t   T T S v o i c e s 
 
 C h e c k M o t o r T e m p e r a t u r e 
 
 E n a b l e A l l B u t t o n s 
 
 L a n g u a g e   =   1 
 
 
 
 S l o t ( 1 0 0 )   =   0 
 
 S l o t ( 2 0 0 )   =   0 
 
 S l o t ( 3 0 0 )   =   0 
 
 S l o t ( 3 0 0 )   =   0 
 
 
 
 W a i t   S e c o n d s   0 . 5 
 
 S l o t ( 1 0 0 )   =   1 0 0 0 
 
 S l o t ( 2 0 0 )   =   1 0 0 0 
 
 S l o t ( 3 0 0 )   =   1 0 0 0 
 
 S l o t ( 4 0 0 )   =   1 0 0 0 
 
 
 
 C h e c k M o t o r T e m p e r a t u r e 
 
 
 
 L o a d   H i d e 
 
 L o o p 
 
 S t o p 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%%  %%%%  %%%%
 
 '   Q%  L O O P                                                                               Q%  %      %    %  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%%  %%%%  %
 
 L a b e l   L o o p 
 
 	 G e t R e s p o n s e F r o m C o b o t 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 C h e c k M o t o r T e m p e r a t u r e 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 C h e c k F r a m e P e r S e c o n d 
 
 	 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 '   0 . 0 2   s e c .   o r   m o r e   t o   a l l o w   t i m e   f o r   k e y s   a n d   o t h e r   t a s k s 
 
 	 W a i t   S e c o n d s   0 . 0 2 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 G o t o   L o o p 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E N A B L E / D I S A B L E   B U T T O N S                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E n a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   3 2 
 
 	 	 B u t t o n   v 1   E n a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   D i s a b l e A l l B u t t o n s 
 
 	 F o r   v 1   =   1   T o   3 2 
 
 	 	 B u t t o n   v 1   D i s a b l e d 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  S A V E   L O A D   V A R S                                                           Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   S a v e V a r s 
 
 	 S 1   =   S e q u e n c e N a m e 
 
 	 s 3   =   L a n g u a g e 
 
 	 S a v e   V a r s 
 
 	 P r i n t   C R L F   +   " S A V E D   S E Q U E N C E N A M E   =   "   +   s 1   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   R e s t o r e V a r s 
 
 	 L o a d   V a r s 
 
 	 ' s 1   =   " C O B _ R a i s e A f t e r H o m e . s e q " 
 
 	 S e q u e n c e N a m e   =   S 1 
 
 	 L a n g u a g e   =   s 3 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%  %      %%%%  %%%%  %%%%
 
 '   Q%  C L O S E   A L L                                                                     Q%  %      %      %    %  %%%%  %%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%  %%%%  %%%%
 
 L a b e l   C l o s e A l l 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   5 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S e t S p e e d   1 0 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 R e d O n 
 
 	 S a v e V a r s 
 
 	 L o a d   C l o s e A p p s 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ V i d e o C o l o r s . e x e 
 
 	 L o a d   C l o s e A p p s   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 	 R e d O n 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%%  %%%%  %%%%
 
 '   Q%  S T O P   E V E N T   ( w h e n   p r e s s i n g   s t o p   b u t t o n )           Q%  %%%%      %      %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%      %      %%%%  %
 
 L a b e l   E v e n t S t o p 
 
 	 S a v e V a r s 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 S t o p P u m p 
 
 	 C o b o t C o m m a n d   =   " S e t A c c e l e r a t i o n   5 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S e t S p e e d   1 0 0 0 " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 R e d O n 
 
 	 E n a b l e A l l B u t t o n s 
 
 	 W i n d o w   S i z a b l e 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 S a y E n d O f P r o g r a m 
 
 E n d 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %      %      %%%%
 
 '   Q%    S A Y   Q R C O D E                                                                 Q%  %%%%  %%%%    %%%        %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %      %          %%%%%
 
 L a b e l   S a y Q R C o d e 
 
 	 ' L o a d   C l o s e A p p s   T h e r e m i n o _ V i d e o C o l o r s . e x e 
 
 	 ' W a i t   N o t   A p p R u n n i n g ( " T h e r e m i n o _ V i d e o C o l o r s . e x e " ) 
 
 	 ' L o a d   T h e r e m i n o _ Q R d e c o d e r . e x e 
 
 	 ' W a i t   A p p R u n n i n g ( " T h e r e m i n o _ Q R d e c o d e r . e x e " ) 
 
 	 ' 
 
 	 W a i t C o b o t R e a d y 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ m o v e _ t o _ Q R c o d e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ m o v e _ t o _ Q R c o d e . s e q "   +   C R L F 
 
 	 ' 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 W a i t     S l o t T e x t ( S l o t Q R c o d e )   < >   " " 
 
 	 	 s 2   =   S l o t T e x t ( S l o t Q R c o d e ) 
 
 	 	 s 2   =   R e p l a c e ( s 2 ,   C R L F ,   " " ) 
 
 	 	 s 2   =   T r i m ( s 2 ) 
 
 	 	 S e l e c t   s 2 
 
 	 	 	 C a s e   " E n g l i s h   m a l e " 
 
 	 	 	 	 L a n g u a g e   =   1 
 
 	 	 	 	 T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s E n g l i s h M a l e 
 
 	 	 	 C a s e   " E n g l i s h   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   2 
 
 	 	 	 	 T T S   S e l e c t V o i c e   2 
 
 	 	 	 	 S a y N o w T h e V o i c e I s E n g l i s h F e m a l e 
 
 	 	 	 C a s e   " I t a l i a n   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   3 
 
 	 	 	 	 T T S   S e l e c t V o i c e   3 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s I t a l i a n F e m a l e 
 
 	 	 	 C a s e   " C h i n e s e   f e m a l e " 
 
 	 	 	 	 L a n g u a g e   =   4 
 
 	 	 	 	 T T S   S e l e c t V o i c e   4 
 
 	 	 	 	 S a y N o w T h e L a n g u a g e I s C h i n e s e F e m a l e 
 
 	 	 	 C a s e   " S T A R T " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " S t a r t   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " C o i n " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " C o i n   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " B a l l " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " B a l l   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " S t a r t   p u m p " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " S t a r t   p u m p . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " S t o p   p u m p " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " S t o p   p u m p . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " H o m e " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " H o m e   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " S h o w " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " S h o w   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e   " R e d " 
 
 	 	 	 	 R e d O n 
 
 	 	 	 C a s e   " G r e e n " 
 
 	 	 	 	 G r e e n O n 
 
 	 	 	 C a s e   " B l u e " 
 
 	 	 	 	 B l u e O n 
 
 	 	 	 C a s e   " Y e l l o w " 
 
 	 	 	 	 Y e l l o w O n 
 
 	 	 	 C a s e   " W h i t e " 
 
 	 	 	 	 W h i t e O n 
 
 	 	 	 C a s e   " E N D " 
 
 	 	 	 	 ' L a n g u a g e   =   1 
 
 	 	 	 	 ' T T S   S e l e c t V o i c e   1 
 
 	 	 	 	 T T S   S p e a k   " E n d   w o r k . " 
 
 	 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 C a s e E l s e 
 
 	 	 	 	 P r i n t   " I n v a l i d   Q R c o d e   "   +   s 2   +   C R L F 
 
 	 	 	 	 S a y U n k n o w Q R c o d e 
 
 	 	 	 ' S t o p 
 
 	 	 E n d S e l e c t 
 
 	 	 P r i n t   " Q R c o d e = "   +   s 2   +   C R L F 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 	 W a i t   S l o t T e x t ( S l o t Q R c o d e )   < >   s 2 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %    %  %%%
 
 '   Q%    S   U   B   R   O   U   T   I   N   E       A   R   E   A                           Q%  %%%%  %    %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%
 
 L a b e l   S t a r t P u m p 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 S l o t ( S l o t _ P u m p )   =   1 0 0 0 
 
 	 B u t t o n   S t a r t P u m p   D i s a b l e d 
 
 	 B u t t o n   S t o p P u m p   E n a b l e d 
 
 	 W a i t   S e c o n d s   1 
 
 	 B e e p   " 1 5 0 0 ,   1 0 0 
 
 ' 	 I f   S l o t ( S l o t _ V a c u u m )   >   5 6 
 
 ' 	 	 ' B e e p   " 5 0 0 ,   3 0 0 ,   0 ,   3 0 0 " 
 
 ' 	 	 S a y V a c u u m P r o b l e m 
 
 ' 	 	 W a i t   T T S r e a d y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 S t o p P u m p 
 
 ' 	 	 P r i n t   " V a c u u m   P r o b l e m "   +   C R L F 
 
 ' 	 	 C o b o t S h o w P o i n t 
 
 ' 	 	 P r i n t   " E x e c u t i o n   s t o p p e d "   +   C R L F 
 
 ' 	 	 R e d B l i n k 
 
 ' 	 	 E n d 
 
 ' 	 E l s e 
 
 ' 	 	 W h i t e O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 1 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 S a y T a r g e t T a k e n 
 
 ' 	 	 P r i n t   " T a r g e t   t a k e n " 
 
 ' 	 E n d I f 
 
 ' R e t u r n 
 
 	 
 
 L a b e l   S t o p P u m p 
 
 	 S l o t ( S l o t _ P u m p )   =   0 
 
 	 B u t t o n   S t o p P u m p   D i s a b l e d 
 
 	 B u t t o n   S t a r t P u m p   E n a b l e d 
 
 R e t u r n 
 
 
 
 L a b e l   W a y P o i n t T e s t 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ W a y P o i n T e s t . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ W a y P o i n T e s t . s e q "   +   C R L F 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%    %%%%  %%%%  %%%        %%%%
 
 '   Q%  C O B O T   C O M M A N D S                                                           Q%    %        %    %  %%%%      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%    %%%%  %%%%  %%%%      %%%%
 
 V a r i a b l e   S t r i n g   C o b o t C o m m a n d 
 
 L a b e l   S e n d C o m m a n d T o C o b o t 
 
 	 S l o t T e x t   S l o t C o b o t C o m m a n d s   =   " " 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 S l o t T e x t   S l o t C o b o t C o m m a n d s   =   C o b o t C o m m a n d 
 
 	 W a i t   S e c o n d s   0 . 1 
 
 	 W a i t C o b o t R e a d y 
 
 R e t u r n 
 
 
 
 V a r i a b l e   S t r i n g   C o b o t R e s p o n s e 
 
 L a b e l   G e t R e s p o n s e F r o m C o b o t 
 
 	 C o b o t R e s p o n s e   =   S l o t T e x t ( S l o t C o b o t R e s p o n s e s ) 
 
 	 ' P r i n t   C o b o t R e s p o n s e   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t C o b o t R e a d y 
 
 	 W a i t   S l o t T e x t ( S l o t C o b o t R e s p o n s e s )   =   " R e a d y " 
 
 	 
 
 	 F o r   v 1   =   0   T o   I n f i n i t y 
 
 	 	 I f   S l o t T e x t ( S l o t C o b o t R e s p o n s e s )   =   " R e a d y " 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t S t a r t E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t S t o p E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C o b o t D i s a b l e R e p e a t 
 
 	 C o b o t C o m m a n d   =   " D i s a b l e R e p e a t " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 R e t u r n 
 
 
 
 L a b e l   C l o c h e M o d e J o i n t 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   C l o c h e M o d e J o i n t   E n a b l e d 
 
 	 B u t t o n   C l o c h e M o d e J o i n t   C o l o r   F l a s h i n g 5   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " C L O C H E   m o d e   J o i n t . " 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 I f   A b s ( S l o t ( S l o t _ C l o c h e X )   -   5 0 0 )   >   2 0 
 
 	 	 	 S l o t ( 1 0 1 )   =   ( S l o t ( S l o t _ C l o c h e X )   -   5 0 0 )   /   5 0 0   *   1 8 0 
 
 	 	 E n d I f 
 
 	 	 I f   A b s ( S l o t ( S l o t _ C l o c h e Y )   -   5 0 0 )   >   2 0 
 
 	 	 	 S l o t ( 2 0 1 )   =   ( S l o t ( S l o t _ C l o c h e Y )   -   5 0 0 )   /   5 0 0   *   1 8 0 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   C l o c h e M o d e J o i n t T F 2 3 3 1 M 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   C l o c h e M o d e J o i n t T F 2 3 3 1 M   E n a b l e d 
 
 	 B u t t o n   C l o c h e M o d e J o i n t T F 2 3 3 1 M   C o l o r   F l a s h i n g 5   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " C L O C H E   m o d e   f o r   s m a r t   m o t o r . " 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( 3 )   =   S l o t ( S l o t _ C l o c h e X ) 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e M 2 _ x _ 1 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 1   E n a b l e d 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 1   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K n o b   m o d e ,   m o t o r   2   s e t   f o r   s t e p   1 . " 
 
 	 v 7 3   =   S l o t ( S l o t _ E n c o d e r D a t a ) 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( 1 0 1 )   =   ( S l o t ( S l o t _ E n c o d e r D a t a )   -   v 7 3 )   *   1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e M 2 _ x _ 0 1 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 1   E n a b l e d 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 1   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K e y k k n o b   m o d e ,   m o t o r   2   s e t   f o r   s t e p   0 . 1 . " 
 
 	 v 7 3   =   S l o t ( S l o t _ E n c o d e r D a t a ) 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( 1 0 1 )   =   ( v 7 3   -   S l o t ( S l o t _ E n c o d e r D a t a ) )   *   0 . 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e M 2 _ x _ 0 0 1 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 1   E n a b l e d 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 1   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K e y k k n o b   m o d e ,   m o t o r   2   s e t   f o r   s t e p   0 . 0 1 . " 
 
 	 v 7 3   =   S l o t ( S l o t _ E n c o d e r D a t a ) 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( 1 0 1 )   =   ( v 7 3   -   S l o t ( S l o t _ E n c o d e r D a t a ) )   *   0 . 0 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e M 2 _ x _ 0 0 0 1 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 0 1   E n a b l e d 
 
 	 B u t t o n   K n o b M o d e M 2 _ x _ 0 0 0 1   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K e y k k n o b   m o d e ,   m o t o r   2   s e t   f o r   s t e p   0 . 0 0 1 . " 
 
 	 v 7 3   =   S l o t ( S l o t _ E n c o d e r D a t a ) 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 S l o t ( 1 0 1 )   =   ( v 7 3   -   S l o t ( S l o t _ E n c o d e r D a t a ) )   *   0 . 0 0 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e F T 2 3 3 1 M X 1 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 1   E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   P r e v i o u s X 1   =   0 
 
 	 V a r i a b l e   N u m e r i c   A c t u a l X 1   =   0 
 
 	 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 1   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K e y n o b   m o d e ,   s m a r t   m o t o r   F e e T e c h   w i t h   s t e p   s e t   a t   1 . " 
 
 	 S l o t ( 3 )   =   5 0 0 
 
 	 P r e v i o u s X 1   =   S l o t ( 4 ) 
 
 	 A c t u a l X 1   =   S l o t ( 4 ) 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 A c t u a l X 1   =   S l o t ( 4 ) 
 
 	 	 I f   P r e v i o u s X 1     < >     A c t u a l X 1 
 
 	 	 	 S l o t ( 3 )   =   ( A c t u a l X 1   -   P r e v i o u s X 1 )   +   5 0 0 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   K n o b M o d e F T 2 3 3 1 M X 5 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 5   E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   P r e v i o u s X 5   =   0 
 
 	 V a r i a b l e   N u m e r i c   A c t u a l X 5   =   0 
 
 	 B u t t o n   K n o b M o d e F T 2 3 3 1 M X 5   C o l o r   F l a s h i n g 6   L i g h t C y a n   A q u a 
 
 	 T T S   S p e a k   " K e y n o b   m o d e ,   s m a r t   m o t o r   F e e T e c h   w i t h   s t e p   s e t   a t   5 . " 
 
 	 S l o t ( 3 )   =   5 0 0 
 
 	 P r e v i o u s X 5   =   S l o t ( 4 ) 
 
 	 A c t u a l X 5   =   S l o t ( 4 )   +   5 
 
 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 A c t u a l X 5   =   S l o t ( 4 ) 
 
 	 	 I f   P r e v i o u s X 5     < >     A c t u a l X 5 
 
 	 	 	 S l o t ( 3 )   =   ( ( ( A c t u a l X 5 )   -   P r e v i o u s X 5 )   *   5 )   +   5 0 0 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 L a b e l   C O B O T R a i s e A f t e r H o m e 
 
 	 C o b o t S t o p E x e c u t i o n 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ R a i s e A f t e r H o m e . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t S t a r t E x e c u t i o n 
 
 	 P r i n t   " C O B _ R a i s e A f t e r H o m e . s e q "   +   C R L F 
 
 R e t u r n 
 
 
 
 L a b e l   C O B _ S E N T E L _ 2 M _ s y n c r o 
 
 	 T T S   S p e a k   " S m a l l   C O B O T ,   s t a r t   t w o   m o t o r   d e m o   e x e c u t i o n . " 
 
 	 ' W a i t   T T S r e a d y 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   C O B _ S E N T E L _ 2 M _ s y n c r o . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " C O B _ S E N T E L _ 2 M _ s y n c r o . s e q "   +   C R L F 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%    %%%%  %      %
 
 '   Q%    B   A   L   L                                                                       Q%  %%%%  %%%%  %      %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %    %  %%%  %%%
 
 L a b e l   C o b o t L o a d S e q B a l l 
 
 	 S a y S t a r t B a l l R o u t i n e 
 
 	 C o b o t C o m m a n d   =   " S t o p E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B A L _ 1 _ P i c k _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " B A L _ 1 _ P i c k _ A . s e q "   +   C R L F 
 
 	 S t a r t P u m p 
 
 	 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B A L _ 2 _ P l a c e l _ B . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " B A L _ 2 _ P l a c e l _ B . s e q "   +   C R L F 
 
 	 S t o p P u m p 
 
 	 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B A L _ 3 _ P i c k _ B . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " B A L _ 3 _ P i c k _ B . s e q "   +   C R L F 
 
 	 S t a r t P u m p 
 
 	 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B A L _ 4 _ P l a c e _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " B A L _ 4 _ P l a c e _ A . s e q "   +   C R L F 
 
 	 S t o p P u m p 
 
 	 
 
 	 C o b o t C o m m a n d   =   " L o a d S e q u e n c e   B A L _ 5 _ R a i s e A f t e r P l a c e _ A . s e q " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 C o b o t C o m m a n d   =   " S t a r t E x e c u t i o n " 
 
 	 S e n d C o m m a n d T o C o b o t 
 
 	 P r i n t   " B A L _ 5 _ R a i s e A f t e r P l a c e _ A . s e q "   +   C R L F 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%  %  %%
 
 '   Q%    S P O K E N   M E S S A G E S                                                       Q%  %%%%  %%%%  %    %  %%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %        %%%%  %  %%
 
 V a r i a b l e   N u m e r i c   L a n g u a g e 
 
 L a b e l   S a y P o w e r S w I s O n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " P o w e r   s w i t c h   i s   o n ? " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " P o w e r   s w i t c h   i s   o n ? " 
 
 	 	 C a s e   3     	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " H a i   a c c e s o   l ' a l i m e n t a z i o n e ? " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " 5un _sQ/f&TSb _" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S t a r t a S e q u e n c e O f R o b o t A c t i o n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   r o b o t   a c t i o n   s e q u e n c e . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   r o b o t   a c t i o n   s e q u e n c e . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a t a   l a   s e q u e n z a   d i   a z i o n i   d e l   r o b o t . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " /TR:ghVNR\O^R0" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y S t a r t B a l l R o u t i n e 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   s e q u e n c e   o f   p i c k   a n d   p l a c e   o f   p i n g   p o n g   b a l l " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " S t a r t   s e q u e n c e   o f   p i c k   a n d   p l a c e   o f   p i n g   p o n g   b a l l " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a   l a   s e q u e n z a   d i   p r e l i e v o   e   p o s i z i o n a m e n t o   d e l l a   p a l l i n a   d a   p i n g   p o n g . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   "  _YRNSNtvS>ez^0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y S t a r t C o i n R o u t i n e 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " C o i n   s e q u e n c e   m a n a g e m e n t   h a s   b e e n   l a u n c h e d . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " C o i n   s e q u e n c e   m a n a g e m e n t   h a s   b e e n   l a u n c h e d . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " A v v i a t a   l a   g e s t i o n e   d e l l a   s e q u e n z a   d e l l a   m o n e t a . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " lx^z^{t _Y0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R e a d Q R c o d e F u n c t i o n 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a t i o n   o f   t h e   Q R   c o d e   a n d   s t a r t   o f   t h e   s e q u e n c e   o f   a c t i o n s   o f   t h e   r o b o t . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a t i o n   o f   t h e   Q R   c o d e   a n d   s t a r t   o f   t h e   s e q u e n c e   o f   a c t i o n s   o f   t h e   r o b o t . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " I n t e r p r e t a z i o n e   d e l   c o d i c e   Q R   e   a v v i o   d e l l a   s e q u e n z a   d i   a z i o n i   d e l   r o b o t . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " N~xv^ _Y:ghVNv N|RR\O0" 
 
 	 E n d S e l e c t 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y E n d O f R o b o t A c t i o n s 
 
 	 S e l e c t   L a n g u a g e 
 
 	 	 C a s e   1 	 	 	 ' D a v i d   E n g l i s h   m a l e 
 
 	 	 	 T T S   S p e a k   " T h e   a c t i o n   o f   t h e   r o b o t   i s   f i n i s h e d   a n d   i t   g o e s   t o   t h e   r e s t   p o s i t i o n . " 
 
 	 	 C a s e   2 	 	 	 ' Z i r a   E n g l i s h   f e m a l e 
 
 	 	 	 T T S   S p e a k   " T h e   a c t i o n   o f   t h e   r o b o t   i s   f i n i s h e d   a n d   i t   g o e s   t o   t h e   r e s t   p o s i t i o n . " 
 
 	 	 C a s e   3 	 	 	 ' E l s a   I t a l i a n   F e m a l e 
 
 	 	 	 T T S   S p e a k   " L ' a z i o n e   d e l   r o b o t      t e r m i n a t a   e   s i   p o r t a   i n   p o s i z i o n e   d i   r i p o s o . " 
 
 	 	 C a s e   4 	 	 	 ' H u i h u i   C h i n e s e   f e m a l e 
 
 	 	 	 T T S   S p e a k   " :ghVNR\O[bۏeQYbkMOn0" 
 
 	 E n d S e l e c t 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y R o b o t R e a d y A n d O p e r a t i o n a l 
 
 	 T T S   S p e a k   " J o i n t   m o t o r s   a r e   r e a d y   a n d   o p e r a t i o n a l . " 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w E n t e r I n C l o c h e M o d e J o i n t 
 
 	 T T S   S p e a k   " N o w   e n t e r   i n   c l o c h e   m o d e . " 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w E x i t F r o m C l o c h e M o d e J o i n t 
 
 	 T T S   S p e a k   " N o w   e x i t   f r o m   c l o c h e   m o d e . " 
 
 	 ' W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s E n g l i s h M a l e 
 
 	 T T S   S p e a k   " N o w   t h e   l a n g u a g e   i s   E n g l i s h . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e V o i c e I s E n g l i s h F e m a l e 
 
 	 T T S   S p e a k   " N o w   t h e   v o i c e   i s   f e m a l e . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s I t a l i a n F e m a l e 
 
 	 T T S   S p e a k   " O r a   p a r l a   I t a l i a n o . " 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y N o w T h e L a n g u a g e I s C h i n e s e F e m a l e 
 
 	 T T S   S p e a k   " s(W /f-Ne" 
 
 	 W a i t   T T S r e a d y 
 
 R e t u r n 
 
 
 
 L a b e l   S a y U n k n o w Q R c o d e 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " U n k n o w   Q R c o d e . " 
 
 R e t u r n 
 
 
 
 L a b e l   S a y V a c u u m P r o b l e m 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " V a c u u m   P r o b l e m . " 
 
 R e t u r n 
 
 
 
 L a b e l   S a y T a r g e t T a k e n 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " T a r g e t   t a k e n . " 
 
 R e t u r n 
 
 
 
 L a b e l   S a y E n d O f P r o g r a m 
 
 	 L a n g u a g e   =   1 
 
 	 T T S   S p e a k   " T h e   p r o g r a m   i s   t e r m i n a t e d . " 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%
 
 '   Q%  E M E R G E N C Y                                                                     Q%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%
 
 L a b e l   E m e r g e n c y 
 
 ' 	 D i s a b l e A l l B u t t o n s 
 
 ' 	 B u t t o n   1 5   E n a b l e d 
 
 ' 	 B u t t o n   1 5   C o l o r   F l a s h i n g 7   Y e l l o w   R e d 
 
 ' 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 ' 	 	 R e d O n 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 R g b O f f 
 
 ' 	 	 W a i t   S e c o n d s   0 . 4 
 
 ' 	 	 L o a d   s o u n d \ A l a r m 1 0 b . w a v 
 
 ' 	 N e x t 
 
 	 S t o p 
 
 	 E m e r g e n c y 
 
 	 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %      %%%  %%%
 
 '   Q%  L E D   C O L O R S                                                                   Q%  %      %%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%  %%%  %%%%
 
 L a b e l   R e d O n 
 
 	 ' L a n g u a g e   =   1 
 
 	 ' T T S   S p e a k   " S t a t u s   r e d . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   M a g e n t a O n 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   Y e l l o w O n 
 
 	 ' L a n g u a g e   =   1 
 
 	 ' T T S   S p e a k   " S t a t u s   y e l l o w . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 
 
 	 S l o t   S l o t _ L e d G   =   6 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   G r e e n O n 
 
 	 ' L a n g u a g e   =   1 
 
 	 ' T T S   S p e a k   " S t a t u s   g r e e n . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   B l u e O n 
 
 	 ' L a n g u a g e   =   1 
 
 	 ' T T S   S p e a k   " S t a t u s   b l u e . " 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   W h i t e O n 
 
 	 ' L a n g u a g e   =   1 
 
 	 ' T T S   S p e a k   " S t a t u s   w h i t e . " 
 
 	 S l o t   S l o t _ L e d R   =   0 
 
 	 S l o t   S l o t _ L e d G   =   0 
 
 	 S l o t   S l o t _ L e d B   =   0 
 
 R e t u r n 
 
 
 
 L a b e l   R g b O f f 
 
 	 S l o t   S l o t _ L e d R   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d G   =   1 0 0 0 
 
 	 S l o t   S l o t _ L e d B   =   1 0 0 0 
 
 R e t u r n 
 
 
 
 L a b e l   R e d B l i n k 
 
 	 R e d O n 
 
 	 W h i t e O n 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%%  %%%%  %%  %%  %%%%
 
 '   Q%  T E M P E R A T U R E   M O T O R S                                                   Q%      %      %%%    %  %  %  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%      %      %%%%  %      %  %
 
 L a b e l   C h e c k M o t o r T e m p e r a t u r e 
 
 	 I f   D e b u g   =   0 
 
 	 	 V a r i a b l e   N u m e r i c   O l d T e m p e r a t u r e 
 
 	 	 T e s t M o t o r s T e m p e r a t u r e 
 
 	 	 I f   M o t o r s T e m p e r a t u r e   < >   O l d T e m p e r a t u r e 
 
 	 	 	 O l d T e m p e r a t u r e   =   M o t o r s T e m p e r a t u r e 
 
 	 	 	 B u t t o n   M o t o r T e m p   T e x t   " M o t o r T e m p :   "   +   F o r m a t ( M o t o r s T e m p e r a t u r e ,   " 0 " ) 
 
 	 	 	 I f   M o t o r s T e m p e r a t u r e   >   5 5 
 
 	 	 	 	 F o r   v 1   =   1   T o   I n f i n i t y 
 
 	 	 	 	 	 T e s t M o t o r s T e m p e r a t u r e 
 
 	 	 	 	 	 I f   M o t o r s T e m p e r a t u r e   < =   6 8 
 
 	 	 	 	 	 	 E x i t 
 
 	 	 	 	 	 E n d I f 
 
 	 	 	 	 	 L o a d   S o u n d \ A l a r m 1 4 . w a v 
 
 	 	 	 	 	 T T S   S p e a k   " W a r n i n g ,   h i g h   t m p e r a t u r e "   +   M o t o r s T e m p e r a t u r e 
 
 	 	 	 	 	 W a i t   N o t   M e d i a P l a y i n g 
 
 	 	 	 	 N e x t 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 I f   M o t o r s T e m p e r a t u r e   =   0 
 
 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 F o r   v 1   =   1   T o   5 
 
 	 	 	 	 P r i n t   "   C A N b u s   n o t   r e a d y "   +   C R L F 
 
 	 	 	 	 L o a d   S o u n d \ A l a r m 1 4 . w a v 
 
 	 	 	 	 ' T T S   S p e a k   " W a r n i n g ,   C A N b u s   p r o t o c o l   i s   n o t   r u n n i n g . " 
 
 	 	 	 	 W a i t   N o t   M e d i a P l a y i n g 
 
 	 	 	 N e x t 
 
 	 	 E n d I f 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 V a r i a b l e   N u m e r i c   M o t o r s T e m p e r a t u r e 
 
 L a b e l   T e s t M o t o r s T e m p e r a t u r e 
 
 	 M o t o r s T e m p e r a t u r e   =   S l o t ( 1 5 2 ) 
 
 	 M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 2 5 2 ) ) 
 
 	 ' M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 3 0 6 ) ) 
 
 	 ' M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 4 0 6 ) ) 
 
 	 ' M o t o r s T e m p e r a t u r e   =   M a x ( M o t o r s T e m p e r a t u r e ,   S l o t ( 5 0 6 ) ) 
 
 R e t u r n 
 
 
 
 L a b e l   W a i t M o t o r s R e a d y 
 
 	 S l o t ( 1 5 2 )   =   0 
 
 	 f o r 	 v 2   =   1   t o   I n f i n i t y 
 
 	 	 W a i t   S e c o n d s   0 . 2 
 
 	 	 I f   S l o t ( 1 5 2 )   =   0 
 
 	 	 	 P r i n t   " M o t o r   n o t   r e a d y   " 
 
 	 	 	 S a y P o w e r S w I s O n 
 
 	 	 	 W a i t   T T S r e a d y 
 
 	 	 	 W a i t   S e c o n d s   1 
 
 	 	 E l s e 
 
 	 	 	 E x i t   f o r 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%
 
 '   Q%  F R A M E   P E R   S E C O N D                                                       Q%  %%%    %%%%  %%%%
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %        %        %%%%
 
 l k j j j k l 
 
 L a b e l   C h e c k F r a m e P e r S e c o n d 
 
 	 B u t t o n   F r a m e P e r S e c   	 T e x t   " F P S   =   "   +   F o r m a t ( S l o t ( S l o t _ F P S ) ,   " 0 " ) 
 
 	 B u t t o n   F r a m e P e r S e c   C o l o r   G r e e n 9 
 
 	 f o r 	 v 3   =   1   t o   I n f i n i t y 
 
 	 	 I f   S l o t ( S l o t _ F P S )   >   3 5 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   C o l o r   S a l m o n 
 
 	 	 	 P r i n t   " M o t o r   n o t   c o m u n i c a t e   c o r r e c t l y " 
 
 	 	 	 W a i t   S e c o n d s   1 
 
 	 	 	 S l o t ( S l o t _ E n a b l e R S 4 8 5 )   =   0 
 
 	 	 	 W a i t   S e c o n d s   2 
 
 	 	 	 S l o t ( S l o t _ E n a b l e R S 4 8 5 )   =   1 0 0 0 
 
 	 	 	 W a i t   S e c o n d s   1 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   C o l o r   G r e e n 9 
 
 	 	 E n d I f 
 
 	 	 I f   S l o t ( S l o t _ F P S )   =   0 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   C o l o r   B l a c k 
 
 	 	 	 P r i n t   " M o t o r   D I S C O N N E C T E D " 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   	 T e x t   " D I S C O N N E C T E D " 
 
 	 	 E n d I f 
 
 	 	 I f   S l o t ( S l o t _ F P S )   =   - 1 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   C o l o r   R e d 
 
 	 	 	 P r i n t   " M o t o r   I N A C T I V E " 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   	 T e x t   " I N A C T I V E " 
 
 	 	 E n d I f 
 
 	 	 I f   S l o t ( S l o t _ F P S )   =   - 2 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   C o l o r   Y e l l o w 
 
 	 	 	 P r i n t   " M o t o r   D I S A B L E D " 
 
 	 	 	 B u t t o n   F r a m e P e r S e c   	 T e x t   " D I S A B L E D " 
 
 	 	 E n d I f 
 
 	 	 E x i t   f o r 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%
 
 '   Q%    S E Q U E N C E S                                                                   Q%  %%%%  %%%    %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%%
 
 L a b e l   I n i t S e q u e n c e P a t h s 
 
 	 V a r i a b l e   S t r i n g   E d i t o r F o l d e r 
 
 	 V a r i a b l e   S t r i n g   E d i t o r A p p 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e P a t h A n d N a m e 
 
 	 V a r i a b l e   S t r i n g   S e q u e n c e N a m e 
 
 	 ' 
 
 	 E d i t o r F o l d e r   =   " . \ A p p s \ T h e r e m i n o _ E d i t o r \ " 
 
 	 ' 
 
 	 E d i t o r A p p   =   E d i t o r F o l d e r   +   " T h e r e m i n o _ E d i t o r . e x e " 
 
 	 ' 
 
 	 S e q u e n c e P a t h A n d N a m e   =   E d i t o r F o l d e r   +   " S e q u e n c e s \ "   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 L a b e l   E d i t S e q u e n c e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 I f   F i l e E x i s t s ( S e q u e n c e P a t h A n d N a m e ) 
 
 	 	 L o a d   E d i t o r A p p   +   "   "   +   S e q u e n c e P a t h A n d N a m e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S e l e c t S e q u e n c e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 s 1   =   S e l e c t F i l e ( E d i t o r F o l d e r   +   " S e q u e n c e s \ " ) 
 
 	 I f   s 1   < >   " " 
 
 	 	 S e q u e n c e N a m e   =   s 1 
 
 	 	 S h o w S e q u e n c e N a m e 
 
 	 	 E d i t S e q u e n c e 
 
 	 E n d I f 
 
 R e t u r n 
 
 
 
 L a b e l   S h o w S e q u e n c e N a m e 
 
 	 B u t t o n   S e l e c t S e q u e n c e   T e x t   " S e q u e n c e "   +   C R L F   +   S e q u e n c e N a m e 
 
 R e t u r n 
 
 
 
 
 
 '   T%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%W%  %%%%  %%%%  %%%%        %        %%%%
 
 '   Q%  S E Q U E N C E   L O A D I N G   A N D   E X E C U T I O N                           Q%  %%%%  %%%%  %    %        %        %    %
 
 '   Z%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%P%]%  %%%%  %%%%  %%%%%      %%%%  %%%%
 
 L a b e l   R u n S e q u e n c e 
 
 	 C o b o t S t a r t E x e c u t i o n 
 
 	 ' G r e e n O n 
 
 	 S t a r t a S e q u e n c e O f R o b o t A c t i o n 
 
 	 S l o t T e x t   C o b o t R e s p o n s e   =   " R e a d y " 
 
 	 D i s a b l e A l l B u t t o n s 
 
 	 B u t t o n   E d i t S e q u e n c e   E n a b l e d 
 
 	 B u t t o n   C l o s e A l l   E n a b l e d 
 
 	 ' B u t t o n   E m e r g e n c y   E n a b l e d 
 
 	 B u t t o n   M o t o r T e m p   E n a b l e d 
 
 	 V a r i a b l e   N u m e r i c   E x i t F r o m S e q u e n c e L o o p 
 
 	 ' 
 
 	 ' S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 I n i t S e q u e n c e P a t h s 
 
 	 ' 
 
 	 E x i t F r o m S e q u e n c e L o o p   =   0 
 
 	 S e q u e n c e T o E x e c u t e   =   S e q u e n c e P a t h A n d N a m e 
 
 	 F o r   N u m C y c l e   =   N u m C y c l e   T o   I n f i n i t y 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   1 0 0 0 
 
 	 	 R e s u l t   =   " " 
 
 	 	 E x e c S e q u e n c e 
 
 	 	 W a i t C o b o t R e a d y 
 
 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 	 W a i t   S e c o n d s   0 . 2 
 
 	 	 I f   E x i t F r o m S e q u e n c e L o o p   >   0 
 
 	 	 	 E x i t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   0 
 
 	 E n a b l e A l l B u t t o n s 
 
 R e t u r n 
 
 
 
 '   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 '   %    S E Q U E N C E   L O A D I N G   A N D   E X E C U T I O N                           %
 
 '   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 V a r i a b l e   S t r i n g   S e q u e n c e T o E x e c u t e 
 
 V a r i a b l e   S t r i n g   S e q u e n c e 
 
 V a r i a b l e   S t r i n g   S e q u e n c e C m d 
 
 V a r i a b l e   N u m e r i c   S e q u e n c e I n d e x 
 
 V a r i a b l e   N u m e r i c   S e q u e n c e L e n g t h 
 
 
 
 
 
 L a b e l   E x e c S e q u e n c e 
 
 	 L o a d   S e q u e n c e   S e q u e n c e T o E x e c u t e 
 
 	 I f   L e n ( S e q u e n c e )   =   0 
 
 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 P r i n t   C R L F   +   "   S e q u e n c e   f i l e   n o t   f o u n d :   "   +   S e q u e n c e T o E x e c u t e     +   C R L F 
 
 	 	 B e e p 
 
 	 	 S t o p 
 
 	 E n d I f 
 
 	 ' 
 
 	 P r i n t   C R L F   +   " S e q u e n c e   "   +   G e t F i l e N a m e W i t h o u t P a t h ( S e q u e n c e T o E x e c u t e )     +   C R L F 
 
 	 P r i n t   "   s t a r t e d   a t   "   +   F o r m a t ( N o w ,   " H H : m m : s s " )   +   C R L F   +   C h a r s ( " - " ,   5 0 )   +   C R L F 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 V a r i a b l e   N u m e r i c   E x e c S e q u e n c e S t a r t T i m e 
 
 	 E x e c S e q u e n c e S t a r t T i m e   =   E l a p s e d T i m e 
 
 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 S e q u e n c e L e n g t h   =   G e t S e p a r a t e d S t r i n g C o u n t ( S e q u e n c e ,   C R L F ) 
 
 	 F o r   S e q u e n c e I n d e x   =   0   T o   S e q u e n c e L e n g t h   -   1 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 S e q u e n c e C m d   =   G e t S e p a r a t e d S t r i n g ( S e q u e n c e ,   S e q u e n c e I n d e x ,   C R L F ) 
 
 	 	 S e q u e n c e C m d   =   R e p l a c e ( S e q u e n c e C m d ,   C h r ( 9 ) ,   "   " )   ' T A B S   t o   S P A C E S 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   D o   n o t   p r i n t   l i n e s   c o n t a i n i n g   ' ' 
 
 	 	 I f   G e t S e p a r a t e d S t r i n g C o u n t ( S e q u e n c e C m d ,   " ' ' " )   <   2 
 
 	 	 	 P r i n t   "   E x e c :   "   +   S e q u e n c e C m d   +   C R L F 
 
 	 	 E n d I f 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   T r i m   a n d   r e m o v e   c o m m e n t s 
 
 	 	 S e q u e n c e C m d   =   T r i m ( R e m o v e C o m m e n t s ( S e q u e n c e C m d ) ) 
 
 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 	 	 I f   S e q u e n c e C m d   < >   " " 
 
 	 	 	 S e l e c t   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   0 ) 
 
                         	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   E n d   s e q u e n c e 
 
 	 	 	 	 C a s e   " R e s t a r t " 
 
 	 	 	 	 	 S e q u e n c e I n d e x   =   S e q u e n c e L e n g t h - 1 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   S T O P 
 
 	 	 	 	 C a s e   " S t o p " 
 
 	 	 	 	 	 E x i t F r o m S e q u e n c e L o o p   =   1 
 
 	 	 	 	 	 E x i t 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   C O B O T   A C T I O N S 
 
 	 	 	 	 C a s e   " C O B _ S E N T E L _ 2 M _ s y n c r o " 
 
 	 	 	 	 	 C O B _ S E N T E L _ 2 M _ s y n c r o 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   L E D   C O L O R S 
 
 	 	 	 	 C a s e   " R e d O N " 
 
 	 	 	 	 	 R e d O n 
 
 	 	 	 	 C a s e   " M a g e n t a O N " 
 
 	 	 	 	 	 M a g e n t a O n 
 
 	 	 	 	 C a s e   " Y e l l o w O N " 
 
 	 	 	 	 	 Y e l l o w O n 
 
 	 	 	 	 C a s e   " G r e e n O N " 
 
 	 	 	 	 	 G r e e n O n 
 
 	 	 	 	 C a s e   " B l u e O n " 
 
 	 	 	 	 	 B l u e O n 
 
 	 	 	 	 C a s e   " W h i t e O n " 
 
 	 	 	 	 	 W h i t e O n 
 
 	 	 	 	 C a s e   " R g b O F F " 
 
 	 	 	 	 	 R g b O f f 
 
 	 	 	 	 C a s e   " S T A R T " 
 
 	 	 	 	 	 R u n S e q u e n c e 
 
 	 	 	 	 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   W i t h   p a r a m e t e r s 
 
 	 	 	 	 C a s e   " P a u s e " 
 
 	 	 	 	 	 W a i t   S e c o n d s   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   1 ) 
 
 	 	 	 	 C a s e   " S i g n a l S c o p e " 
 
 	 	 	 	 	 S l o t ( S l o t _ S i g n a l S c o p e )   =   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   1 ) 
 
 	 	 	 	 C a s e E l s e 
 
 	 	 	 	 	 C o n t r o l s   O p e n T e x t B o x 
 
 	 	 	 	 	 P r i n t   C R L F   +   "   U n r e c o g n i z e d   c o m m a n d :   "   +   S e q u e n c e C m d   +   C R L F 
 
 	 	 	 	 	 B e e p 
 
 	 ' 	 	 	 	 S t o p 
 
 	 	 	 E n d S e l e c t 
 
 	 	 E n d I f 
 
 	 N e x t 
 
 	 P r i n t   C h a r s ( " - " ,   5 0 )   +   C R L F   +   " S e q u e n c e   "   +   G e t F i l e N a m e W i t h o u t P a t h ( S e q u e n c e T o E x e c u t e ) 
 
 	 P r i n t   "   e x e c u t e d   i n   "   +   F o r m a t ( E l a p s e d T i m e   -   E x e c S e q u e n c e S t a r t T i m e ,   " 0 . 0 0 " )   +   "   s e c "   +   C R L F 
 
 R e t u r n 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     C O M M A N D S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   " E x i t F r o m E d i t "             ( e x i t   f r o m   e d i t i n g   s t a t e ) 
 
 '   " S t a r t E x e c u t i o n "         ( a u t o - e x i t   f r o m   e d i t i n g ) 
 
 '   " S t o p E x e c u t i o n "           ( a u t o - e x i t   f r o m   e d i t i n g ) 
 
 '   " G o t o H o m e "                     ( a u t o - e x i t   f r o m   e d i t i n g ) 
 
 '   " G o t o C e n t e r "                 ( a u t o - e x i t   f r o m   e d i t i n g ) 
 
 '   " E n a b l e R e p e a t " 
 
 '   " D i s a b l e R e p e a t " 
 
 '   " S e l e c t L i n e   n n n " 
 
 '   " E x e c u t e S e l e c t e d L i n e " 
 
 '   " E n a b l e C o l l a b o r a t i v e 
 
 '   " D i s a b l e C o l l a b o r a t i v e 
 
 '   " A d d N e w P o s i t i o n 
 
 '   " S e t H o m e P o s i t i o n 
 
 '   " S e t C e n t e r P o s i t i o n 
 
 '   " S e t H o l d i n g T o r q u e   n n n " 
 
 '   " S e t S a f e T o r q u e L i m i t   n n n " 
 
 '   " S e t T o r q u e   n n n " 
 
 '   " S e t A c c e l e r a t i o n   n n n " 
 
 '   " S e t S p e e d   n n n " 
 
 '   " L o a d S e q u e n c e   S e q N a m e . s e q "   ( w i t h o u t   s p a c e s ) 
 
 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     R E S P O N S E S 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '   " R e a d y " 
 
 '   " E x e c u t i o n   r u n n i n g   a t   l i n e   n n n " 
 
 '   " M o t o r s   d i s c o n n e c t e d " 
 
 '   " H u m a n   d e t e c t e d   -   S p e e d   r e d u c e d " 
 
 '   " H u m a n   t o o   n e a r   -   E x e c u t i o n   s t o p p e d " 
 
 '   " T o o   m u c h   t o r q u e   -   E x e c u t i o n   s t o p p e d " 
 
 '   " M o t o r s   d i s c o n n e c t e d   -   E x e c u t i o n   s t o p p e d " 
 
 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' I n d e x     N a m e                                                     C u l t u r e     G e n d e r       A g e 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' 1             M i c r o s o f t   D a v i d   D e s k t o p               e n - U S         M a l e           A d u l t 
 
 ' 2             M i c r o s o f t   Z i r a   D e s k t o p                 e n - U S         F e m a l e       A d u l t 
 
 ' 3             M i c r o s o f t   E l s a   D e s k t o p                 i t - I T         F e m a l e       A d u l t 
 
 ' 4             M i c r o s o f t   H u i h u i   D e s k t o p             z h - C N         F e m a l e       A d u l t 
 
 ' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 ' ' 
 
 
 
 
 
 ' W A T C H   P r e v i o u s X 1 0 
 
 ' W A T C H   A c t u a l X 1 0 
 
 ' W A T C H   S l o t ( 3 ) 
 
 